// 定义小仓库的state数据类型

// vue-router提供的路由数据接口类型
import type { RouteRecordRaw } from "vue-router";
export interface UserState{
    token: null|string,
    menuRoutes: RouteRecordRaw[],
    username: string,
    avatar: string,
    buttons: string[],
    userInfo: {
        routes?: string[],
        buttons?: string[],
        roles?: string[],
        name?: string,
        avatar?: string
    }
}

import type { CategoryObj } from '@/api/product/attr/type'
//定义分类仓库state对象的ts类型
export interface CategoryState {
    c1Id: string | number
    c1Arr: CategoryObj[]
    c2Arr: CategoryObj[]
    c2Id: string | number
    c3Arr: CategoryObj[]
    c3Id: string | number
  }
  